ip prefix-list

This command configures the IPv4 prefix-based filtering mechanism.

Syntax

ip prefix-list <prefix list name> {permit|deny}  [a.b.c.d/m|any]
ip prefix-list <prefix list name> description
ip prefix-list <prefix list name> seq <seqnumber> [permit|deny] [a.b.c.d/m|any]
ip prefix-list <prefix list name> [vrf <VRF name>] [seq <prefix-list seq number>] {permit|deny}<prefix to filter> [le <len>] [ge <len>]
no ip prefix-list <name> 

Command

Description

a.b.c.d/m

Defines the IP prefix network/length.

any

Defines any prefix match.

description

Defines up to 80 characters describing this prefix-list.

VRF name

Defines the vrf name.

prefix list name

Defines the name of a prefix list.

seqnumber

Defines the sequence number. Range is [1-4294967295].

deny

Specifies the packets to reject.

permit

Specifies the packets to accept.

le <len>

The prefix list is applied if the prefix length is less than or equal to the le prefix length. Not used if "prefix to filter" is set to "any"

(0-32).

ge <len>

The prefix list is applied if the prefix length is greater than or equal to the ge prefix length. Not used if "prefix to filter" is set to "any"(0-32).

Default

NA

Command Mode

Privileged User

Example

This example configures prefix-based filtering mechanism

(config-data)# ip prefix-list iplist permit any